/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package systole.persistence.brokersInterface;

import java.util.List;
import systole.domain.clinicalInformation.Surgery;
import systole.exceptions.ExceptionDAO;
import systole.synchronization.remote.entities.SurgeryRemote;

/**
 *
 * @author Juan Manuel
 */
public interface SurgerySyncBroker {

    /**
     * 
     * @param surgeryRemote
     * @throws ExceptionDAO 
     */
    public void saveSurgeryRemote(SurgeryRemote surgeryRemote) throws ExceptionDAO;   

    /**
     * 
     * @return SurgeryRemote list
     * @throws ExceptionDAO 
     */
    public List<SurgeryRemote> getSurgeriesToUpdate() throws ExceptionDAO;

    /**
     * 
     * @return
     * @throws ExceptionDAO 
     */
    public List<Surgery> getSurgeriesToUpload() throws ExceptionDAO;

    /**
     * 
     * @param remoteId
     * @return
     * @throws ExceptionDAO
     */
    public Surgery getSurgeryByRemoteId(int remoteId) throws ExceptionDAO;

    /**
     * 
     * @param surgery
     * @return
     * @throws ExceptionDAO
     */
    public SurgeryRemote getSurgeryRemoteBySurgery(Surgery surgery) throws ExceptionDAO;
    
    /**
     * 
     * @return
     * @throws ExceptionDAO 
     */
    public int getLastRemoteSurgeryIdSynchronized() throws ExceptionDAO;
}
